import { defineConfig } from 'vite'
import { resolve } from 'path'
import uni from '@dcloudio/vite-plugin-uni'
import windicss from 'vite-plugin-windicss'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni(), windicss()],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src'),
    },
  },
  css: {
    preprocessorOptions: {
      sass: {
        additionalData: `@use "./src/styles/scss/global.scss" as *;`,
      },
    },
  },
  build: {
    brotliSize: false,
    sourcemap: false,
  },
})
